import { createApp } from 'vue'
// import './style.css'

import ElementPlus from 'element-plus'
import zhCn from 'element-plus/es/locale/lang/zh-cn'
import 'element-plus/dist/index.css'
import router from './router/index'
import App from './App.vue'



const app = createApp(App)

// 引入Element Plus
app.use(ElementPlus, {
    locale: zhCn,
})

// 所有图标并进行全局注册
import * as ElementPlusIconsVue from '@element-plus/icons-vue'
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
    app.component(key, component)
}

// 引入路由
app.use(router)

app.mount('#app')
